<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'mobile-brand-form',
	'enableAjaxValidation'=>false,
	'htmlOptions' => array('enctype'=>'multipart/form-data'),
)); ?>

	<?php echo $form->errorSummary($model); ?>
	<!--
	<div class="row">
		<?php echo $form->labelEx($model,'moeb_order'); ?>
		<?php echo $form->textField($model,'moeb_order'); ?>
		<?php echo $form->error($model,'moeb_order'); ?>
	</div>
	-->
	<div class="row">
		<?php echo $form->labelEx($model,'moeb_name'); ?>
		<?php echo $form->textField($model,'moeb_name',array('size'=>32,'maxlength'=>32)); ?>
		<?php echo $form->error($model,'moeb_name'); ?>
	</div>


	<div class="row">
		<?php echo $form->labelEx($model,'moeb_log'); ?>
		<?php 
			echo $form->textField($model,'moeb_log',array('size'=>60,'maxlength'=>100)); 
			echo "<br/>";
			echo CHtml::fileField('brand_logo', '', array());
		?>
		<?php echo $form->error($model,'moeb_log'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'moeb_is_recomment'); ?>
		<?php 
			$typeMap = array(0=>'否',
							 1=>'是',
							);
		?>
		<select name="MobileBrand[moeb_is_recomment]">
			<?php for($i=0; $i<2; $i++){?>
			<option value="<?php echo $i; ?>" <?php if($model->moeb_is_recomment == $i){echo 'selected';} ?> ><?php echo $typeMap[$i]; ?></option>
			<?php } ?>
		</select>
		<?php echo $form->error($model,'moeb_is_recomment'); ?>

	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->